

/* Home页面样式 */
/* .home-page {
  margin-left: -30px;
  background-color: white;
  min-height: 100vh;
  position: relative;
} */

/* 右上角用户头像 */
.user-header {
  position: fixed;
  top: 0;
  left: 80px;
  right: 0;
  height: 72px;
  background: #fff;
  /* z-index: 100; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 2px 12px rgba(34,96,255,0.06); */
  padding: 0 32px;
  transition: left 0.3s, width 0.3s;
}

.user-header .user-avatar,
.user-header .auth-buttons {
  position: absolute;
  right: 32px;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
}

/* 撤销搜索框居中和max-width样式 */
/* .user-header .search-input-v2, .user-header .search-btn-v2 { } */

body.sidebar-expanded .user-header {
  left: 301px;
}

body.sidebar-collapsed .user-header {
  left: 88px;
}

@media (max-width: 1200px) {
  .user-header {
    left: 56px;
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .user-header {
    left: 0;
    padding: 0 4px;
  }
}

.user-header-placeholder {
  height: 90px;
}

.user-avatar {
  position: relative;
  cursor: pointer;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.avatar-text {
  color: white;
}

/* 登录注册按钮 */
.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-btn,
.register-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.login-btn {
  background: transparent;
  color: #007bff;
  border: 1px solid #007bff;
}

.login-btn:hover {
  background: #007bff;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.register-btn {
  background: #007bff;
  color: white;
}

.register-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 用户下拉菜单 */
.user-menu {
  position: absolute;
  top: 50px;
  right: 0;
  width: 430px; /* 从320px增加到380px */
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e9ecef;
  overflow: hidden;
  animation: slideDown 0.2s ease;
  /* 添加一个透明的连接区域，确保鼠标从头像移动到菜单时不会触发onMouseLeave */
}

.user-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 用户信息区域 */
.user-info-section {
  padding: 20px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
}

.user-role {
  font-size: 12px;
  color: #6c757d;
  font-weight: normal;
  margin-left: 8px;
}

.user-id {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #6c757d;
  padding: 2px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background-color: #f8f9fa;
}

/* 会员推广区域 */
.membership-section {
  padding: 16px 20px;
  background: #dbe3ef; /* 改为新的背景色 */
  border-bottom: 1px solid #f1f3f4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px; /* 添加左右边距 */
  border-radius: 8px; /* 添加圆角 */
}

.membership-content {
  flex: 1;
}

.membership-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.membership-icon {
  width: 16px;
  height: 16px;
  background: #6c757d; /* 改为灰色图标 */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.membership-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
}

.membership-desc {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.membership-benefits {
  font-size: 11px;
  color: #6c757d;
}

.upgrade-btn {
  background: #fce3d0;
  color: #7d5233;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-left: 16px;
  align-self: center;
}

.upgrade-btn:hover {
  background: #f5d4c0; /* 悬停时的颜色 */
}

/* 功能使用情况 */
.usage-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f3f4;
}

.usage-cards {
  display: flex;
  gap: 12px;
}

.usage-card {
  flex: 1;
  padding: 12px;
  border: 1px solid #e9ecef; /* 添加边框 */
  border-radius: 8px;
  background: white;
}

.usage-title {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usage-title .usage-action {
  font-size: 11px;
  color: #007bff;
  cursor: pointer;
  text-decoration: none;
}

.usage-title .usage-action:hover {
  text-decoration: underline;
}

.usage-text {
  font-size: 11px;
  color: #6c757d;
  white-space: nowrap;
  margin-top: 8px; /* 改为顶部边距 */
}

.usage-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #007bff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.usage-action {
  background: none;
  border: none;
  color: #007bff;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.usage-action:hover {
  text-decoration: underline;
}

.ai-stickers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sticker-count {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
}

.sticker-desc {
  font-size: 11px;
  color: #6b3d1e;
  margin-top: 8px;
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -12px;
  background: linear-gradient(180deg, #fcede0 0%, #fcddc7 100%);
  padding: 8px 12px;
  border-radius: 0 0 8px 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticker-desc:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(252, 205, 192, 0.3);
}

.free-trial-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* 账户管理 */
.account-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f3f4;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border: 1px solid #f1f3f4;
  border-radius: 8px;
  padding: 12px 16px;
  height: 40px;
  width: calc(100% - 32px);
  /* margin-left: 10px; */
  /* margin-right: 16px; */
  background-color: #fafbfc;
  position: relative;
}

.free-trial-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #007bff;
  color: white;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
  z-index: 10;
}

.account-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 10px;
}

.account-name-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-name-main {
  font-size: 12px;
  color: #1a202c;
  font-weight: 500;
}

.account-name-sub {
  font-size: 11px;
  color: #6c757d;
  font-weight: 400;
}


.account-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: #f8f9fa;
}

.menu-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.menu-text {
  font-size: 12px;
  color: #1a202c;
}

/* 退出登录按钮 */
.logout-btn {
  width: 100%;
  background: #f8f9fa;
  border: none;
  color: #6c757d;
  padding: 12px 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background: #e9ecef;
  color: #495057;
}

/* 内容主体 */
.content-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 96px; /* 增加顶部间距，避免被吸顶header遮挡 */
}

.recent-designs,
.recent-used {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.recent-designs h2,
.recent-used h2 {
  font-size: 18px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 16px;
}

.content-box {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.welcome-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 500;
  color: #212529;
}

.welcome-icon {
  font-size: 20px;
}

.content-box p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-page {
    padding: 16px;
  }
  
  .user-menu {
    width: 390px; /* 从280px增加到340px */
    right: -20px;
  }
  
  .content-body {
    margin-top: 60px;
  }
  
  .auth-buttons {
    gap: 8px;
  }
  
  .login-btn,
  .register-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .usage-cards {
    flex-direction: column;
    gap: 8px;
  }
  
  .membership-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 12px; /* 移动端减少边距 */
  }
  
  .upgrade-btn {
    margin-left: 0;
    align-self: flex-start;
  }
} 

.top-search-bar {
  width: 1140px;
  height: 230px;
  background: linear-gradient(135deg, #f8fbff 0%, #f2f6fc 100%);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  margin: 0 auto 32px auto;
  padding: 32px 40px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.top-bar-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.tab {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  padding: 0 18px 8px 18px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
  outline: none;
}

.tab.active {
  color: #2260ff;
  border-bottom: 3px solid #2260ff;
}

.tab-badge {
  background: #f5f7fa;
  color: #2260ff;
  font-size: 13px;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 8px;
}

.top-bar-search-row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
}

.search-input {
  flex: 1;
  height: 48px;
  border: 1.5px solid #e3e8f0;
  border-radius: 10px;
  font-size: 18px;
  padding: 0 20px;
  background: #fff;
  outline: none;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(34,96,255,0.03);
}

.search-input:focus {
  border: 1.5px solid #2260ff;
}

.search-btn {
  height: 48px;
  min-width: 100px;
  background: linear-gradient(90deg, #2260ff 0%, #4f8cff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,96,255,0.08);
  transition: background 0.2s;
}

.search-btn:hover {
  background: linear-gradient(90deg, #1746b8 0%, #2260ff 100%);
}

.top-bar-actions {
  display: flex;
  gap: 10px;
  margin-left: 24px;
}

.action-btn {
  background: #f5f7fa;
  color: #2260ff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 0 18px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #e6edff;
}

.top-bar-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.tag {
  background: #f5f7fa;
  color: #2260ff;
  font-size: 15px;
  border-radius: 8px;
  padding: 4px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.tag:hover {
  background: #e6edff;
} 

.top-search-bar-v2 {
  position: relative;
  transition: margin-left 0.3s, width 0.3s;
  width: 900px;
  max-width: 100%;
  margin: 24px auto 0 auto;
  margin-top: -130px;
}

body.sidebar-expanded .top-search-bar-v2 {
  width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.sidebar-collapsed .top-search-bar-v2 {
  width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .top-search-bar-v2,
  body.sidebar-expanded .top-search-bar-v2,
  body.sidebar-collapsed .top-search-bar-v2 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.top-bar-tabs-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  margin-left: 0;
  justify-content: center;
}

.tab-v2 {
  background: #fff;
  border: 1.5px solid #e3e8f0;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  padding: 0 28px;
  height: 44px;
  cursor: pointer;
  transition: color 0.2s, border 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
}

.tab-v2.active {
  color: #2260ff;
  border: 1.5px solid #2260ff;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(34,96,255,0.08);
}

.tab-v2:hover {
  box-shadow: 0 2px 8px rgba(34,96,255,0.12);
}

.tab-badge-v2 {
  background: #a98bfe;
  color: #fff;
  font-size: 13px;
  border-radius: 10px;
  padding: 2px 12px;
  margin-left: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(169,139,254,0.08);
}

.top-bar-search-row-v2 {
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e3e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,96,255,0.04);
  padding: 0 16px;
  height: 56px;
  margin-bottom: 24px;
  position: relative;
}

.search-icon-v2 {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.search-input-v2 {
  flex: 1;
  height: 54px;
  border: none;
  outline: none;
  font-size: 17px;
  background: transparent;
  color: #222;
  padding: 0 8px;
}

.search-input-v2::placeholder {
  color: #bfc8d7;
  font-size: 16px;
}

.search-camera-btn-v2 {
  background: none;
  border: none;
  margin: 0 8px 0 8px;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  transition: background 0.2s;
}

.search-camera-btn-v2:hover {
  background: #f5f7fa;
}

.search-btn-v2 {
  background: #2260ff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  height: 40px;
  min-width: 90px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(34,96,255,0.08);
}

.search-btn-v2:hover {
  background: #1746b8;
}

.top-bar-tags-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.tag-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #222;
  font-size: 15px;
  border-radius: 12px;
  padding: 4px 18px;
  border: 1.5px solid #e3e8f0;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}

.tag-v2:hover {
  background: #f5f7fa;
  border: 1.5px solid #2260ff;
}

.tag-icon {
  font-size: 16px;
  margin-right: 2px;
} 

.sticky-search-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  z-index: 101;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,96,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0;
  transition: width 0.3s, left 0.3s, right 0.3s;
}

@media (max-width: 900px) {
  .sticky-search-bar {
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
  }
}

.sticky-search-inner {
  display: flex;
  align-items: center;
  background: #f8fbff;
  border-radius: 12px;
  border: 1.5px solid #e3e8f0;
  box-shadow: 0 2px 8px rgba(34,96,255,0.03);
  height: 44px;
  min-width: 320px;
  max-width: 520px;
  margin-left: 0;
  margin-right: auto;
  padding: 0 12px;
}

.sticky-search-input {
  flex: 1;
  height: 40px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #222;
  padding: 0 8px;
}

.sticky-search-input::placeholder {
  color: #bfc8d7;
  font-size: 15px;
}

.search-btn-v2 {
  background: #2260ff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  height: 36px;
  min-width: 70px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(34,96,255,0.08);
}

.search-btn-v2:hover {
  background: #1746b8;
}

.sticky-search-inner .search-icon-v2 {
  margin-right: 8px;
  display: flex;
  align-items: center;
} 

.sticky-search-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  margin-left: 0;
}

.sticky-search-tab {
  background: #fff;
  border: 1.5px solid #e3e8f0;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  padding: 0 28px;
  height: 44px;
  cursor: pointer;
  transition: color 0.2s, border 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
}

.sticky-search-tab.active {
  color: #2260ff;
  border: 1.5px solid #2260ff;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(34,96,255,0.08);
}

.sticky-search-tab:hover {
  box-shadow: 0 2px 8px rgba(34,96,255,0.12);
}

.sticky-search-badge {
  background: #a98bfe;
  color: #fff;
  font-size: 13px;
  border-radius: 10px;
  padding: 2px 12px;
  margin-left: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(169,139,254,0.08);
} 

.home-tabs-section {
  margin: 32px 0 0 0;
  padding: 0 32px;
}
.home-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 2px solid #f5f6fa;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.home-tab {
  font-size: 17px;
  color: #222;
  padding: 8px 22px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-right: 2px;
}
.home-tab.active {
  background: #e0ebfc;
  color: #2081fc;
  font-weight: 600;
}
.home-tab-content {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 8px;
}
.home-tab-card {
  width: 130px;
  
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.home-tab-card:hover {
  box-shadow: 0 6px 18px rgba(32,129,252,0  .13);
}
.home-tab-img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}
.home-tab-text {
  font-size: 15px;
  color: #222;
  padding: 10px 0 12px 0;
  text-align: center;
  font-weight: 500;
}
@media (max-width: 900px) {
  .home-tabs-section { padding: 0 8px; }
  .home-tab-card, .home-tab-img { width: 120px; }
  .home-tab-img { height: 80px; }
>>>>>>> new-ll2
} 